package com.tgb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/*
 * 导航controller，实现页面的跳转
 */
@Controller
public class IndexController {
		/**
		 * 显示申请请假页面
		 * @return
		 */
	 	@RequestMapping(value = "/index")
	    public String index() {
	        return "/leave/start";
	    }
		/**
		 * 显示第一个页面
		 * @return
		 */
	    @RequestMapping(value = "/first")
	    public String first() {
	        return "/index/first";
	    }
	    /**
		 * 显示第二个页面
		 * @return
		 */
	    @RequestMapping(value = "/second")
	    public String second() {
	        return "/index/second";
	    }
	    /**
		 * 显示第三个页面
		 * @return
		 */
	    @RequestMapping(value = "/third")
	    public String third() {
	        return "/index/third";
	    }
}
